//
//  TLST_DetailFrameModel.m
//  Travel_World
//
//  Created by lanou on 15/10/13.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "TLST_DetailFrameModel.h"
#import "TLST_DetailModel.h"

@implementation TLST_DetailFrameModel
- (void)setDetailModel:(TLST_DetailModel *)detailModel{
    if (_detailModel != detailModel) {
        _detailModel = detailModel;
    }
    self.avatarF = CGRectMake(10, 10, 50*WID, 50*WID);
    
    CGRect rect = [TLST_DetailModel rectWithStr:detailModel.title fontOfSize:15 rectWithSize:CGSizeMake((WIDTH-80)*WID, 0)];
    self.titleF = CGRectMake(70*WID, 10, WIDTH-70*WID-10, rect.size.height);
    self.userLastF = CGRectMake(70*WID, CGRectGetMaxY(self.titleF)+10, 170, 30);
    self.vreplysF = CGRectMake(240*WID, CGRectGetMaxY(self.titleF)+10, WIDTH-240*WID-10, 30);
    self.cellHeight = CGRectGetMaxY(self.userLastF) + 6;
}
@end
//@property (nonatomic, assign) CGRect avatarF;
//@property (nonatomic, assign) CGRect titleF;
//@property (nonatomic, assign) CGRect userLastF;
//@property (nonatomic, assign) CGRect vreplysF;
//@property (nonatomic, assign) CGFloat cellHeight;